package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    DtsGoodsProductMapper dtsGoodsProductMapper;
    @Override
    public long selectCount() {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("deleted",false);

        Integer integer = dtsGoodsProductMapper.selectCount(wrapper);
        return integer;
    }
}
